package com.baijia.authentication.handler.exception;

/**
 * @title BadCredentialsAuthenticationException
 * @desc 有handler支持校验，但校验出错时抛出
 * @author caoliang
 * @date 2015年12月4日
 * @version 1.0
 */
public class BadCredentialsAuthenticationException extends
    AuthenticationException {

    public static final BadCredentialsAuthenticationException ERROR = new BadCredentialsAuthenticationException();

    private static final long serialVersionUID = 3256719585087797044L;

    public static final String CODE = "error.authentication.credentials.bad";

    public BadCredentialsAuthenticationException() {
        super(CODE);
    }

    public BadCredentialsAuthenticationException(final Throwable throwable) {
        super(CODE, throwable);
    }

    public BadCredentialsAuthenticationException(final String code) {
        super(code);
    }

    public BadCredentialsAuthenticationException(final String code,
        final Throwable throwable) {
        super(code, throwable);
    }
}
